import styles from "./button.module.scss"

const Button: React.FC<{
  children: unknown
  onClick: (event: MouseEvent) => void
}> = ({ children, onClick }) => {
  return (
    <button
      className={styles.button}
      onClick={(e: unknown) => { // TODO: 草了
        if (onClick) onClick(e as MouseEvent)
      }}
    >
      {children}
    </button>
  )
}

export default Button
